Commit
890880583d84607e36b52a785a96b167728bbf73 introduced EEPROM parsing and
board detection but faild to return a valid tricorder_eeprom struct for backup
case. When pressing S200 while reading EEPROM we ignore the value. We
returned falsely a tricorder_eeprom struct with uninitialized data which is
just garbage.
Initialize it by zeroing the whole structure.
Signed-off-by: Andreas Bießmann <[email protected]>
Cc: Thomas Weber <[email protected]>
Signed-off-by: Andreas Bießmann <[email protected]>
} else {
panic("Could not get board revision\n");
}
+ } else {
+ memset(eeprom, 0, TRICORDER_EEPROM_SIZE);
}
}